#include <stdio.h>

int main() {
    int a = 40;
    int b = 212;
    int c = 0;
    c = (-8 + 22) * a - 10 + b / 2;
    printf("%d", c);
    return 0;
}